import {legacy_createStore,applyMiddleware,combineReducers} from "redux"
import thunk from "redux-thunk"
import logger from "redux-logger"
import shopreducer from "./shopreducer"
// legacy_createStore 是创建仓库的  applyMiddleware是处理中间件的 ，combineReducers是合并抽离出去的reducer的
let reducer = combineReducers({
    shopreducer
})
export default legacy_createStore(reducer,applyMiddleware(thunk,logger))
